<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <title>教师申请表单</title>
    <th:block th:insert="~{/head :: head}"></th:block>
</head>
<body>
<!-- Start: Header -->
<div th:insert="~{header::header}"></div>
<!-- End: Header -->

<!-- Start: Main -->
<div id="main">
    <!-- Start: Sidebar -->
    <div th:insert="~{teacher/left::aside}"></div>
    <!-- End: Sidebar -->
    <!-- Start: Content -->
    <section id="content">
        <div id="topbar" class="affix">
            <ol class="breadcrumb">
                <li> <a href="#" th:href="@{/teacher/toTeacher}" class="btn btn-default btn-gradient dropdown-toggle">
                    <span class="glyphicon glyphicon-chevron-left"></span>
                </a></li>
                <li class="active">教师申请表单</li>
            </ol>
        </div>
        <div class="container">
            <div class="row">
                <div class="col-md-10 col-lg-11 center-column">
                    <form th:action="@{/teacher/Request_add}" method="post">

                        <!-- 申请ID（自动生成，隐藏） -->
                        <input type="hidden" name="requestId" th:value="${request.requestId}">

                        <!-- 教师ID -->
                        <div class="mb-3">
                            <label for="teacherId" class="form-label">教师</label>
                            <select id="teacherId" name="teacherId" class="form-select">
                                <option th:each="teacher : ${teachers}"
                                        th:value="${teacher.teacherId}"
                                        th:text="${teacher.name}"></option>
                            </select>
                        </div>

                        <!-- 申请操作（文本内容） -->
                        <div class="mb-3">
                            <label for="requestContent" class="form-label">申请操作</label>
                            <textarea id="requestContent" name="requestContent" class="form-control" rows="5"></textarea>
                        </div>

                        <button type="submit" class="btn btn-primary">提交申请</button>
                    </form>
                </div>
            </div>
        </div>
    </section>

</div>
</body>
</html>